package cn.tedu.bonfire.admin.account.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("account_user_role")
public class UserAndRole implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /*用户id*/
    private Long userId;

    /*角色id*/
    private Long roleId;

    /*
     * 用户创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /*
     * 用户更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;


}
